﻿<Window x:Class="AirlinePilotAcademy_WPF.UI_Administrator.Subject.SearchSubject"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Buscar materia" Height="364" Width="527" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <Window.Background>
        <ImageBrush ImageSource="/AirlinePilotAcademy_WPF;component/Images/Background.png" />
    </Window.Background>
    <Grid>
        <Label Content="Filtro: " HorizontalAlignment="Left" Margin="10,14,0,0" VerticalAlignment="Top" Foreground="White"/>
        <TextBox x:Name="TextBox_Filter" HorizontalAlignment="Left" Height="23" Margin="58,14,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="272" TextChanged="TextBox_FilterChanged" MaxLength="25"/>
        <Button x:Name="Button_Search" Background="#FF87B42C" Content="Buscar" HorizontalAlignment="Left" Margin="355,12,0,0" VerticalAlignment="Top" Width="152" Height="24" IsEnabled="False" Click="Button_Search_Click"/>
        <CheckBox x:Name="CheckBox_RealTimeSearch" Content="Busqueda en tiempo real" HorizontalAlignment="Left" Margin="355,47,0,0" VerticalAlignment="Top" IsChecked="True" Checked="CheckBox_checkedRealTimeSearch" Unchecked="CheckBox_uncheckedRealTimeSearch" Foreground="White"/>

        <GroupBox Header="Opciones de busqueda" HorizontalAlignment="Left" Margin="10,62,0,0" VerticalAlignment="Top" Height="84" Width="497" Foreground="White">
            <Grid>
                <RadioButton x:Name="RadioButton_ByName" IsChecked="True" Content="Por Nombre" HorizontalAlignment="Left" Margin="10,13,0,0" VerticalAlignment="Top" Checked="RadioButton_SearchBy" Unchecked="RadioButton_SearchBy" Foreground="White"/>
                <RadioButton x:Name="RadioButton_ByCode" Content="Por código" HorizontalAlignment="Left" Margin="136,13,0,0" VerticalAlignment="Top" Checked="RadioButton_SearchBy" Unchecked="RadioButton_SearchBy" Foreground="White"/>
                <RadioButton x:Name="RadioButton_ByAcronym" Content="Por sigla" HorizontalAlignment="Left" Margin="250,13,0,0" VerticalAlignment="Top" Checked="RadioButton_SearchBy" Unchecked="RadioButton_SearchBy" Foreground="White"/>
                <CheckBox x:Name="CheckBox_OnlyUpdatedSubject" Content="Mostrar solo materias actualizadas" HorizontalAlignment="Left" Margin="10,37,0,0" VerticalAlignment="Top" Unchecked="CheckBox_uncheckedOnlyUpdatedSubject" Checked="CheckBox_checkedOnlyUpdatedSubject" Foreground="White"/>
            </Grid>
        </GroupBox>

        <Label Content="Resultados de la busqueda" HorizontalAlignment="Left" Margin="10,151,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.211,0.769" Foreground="White"/>
        <DataGrid x:Name="DataGrid_Results" SelectionMode="Single" IsReadOnly="True" HorizontalAlignment="Left" Margin="10,182,0,0" VerticalAlignment="Top" RenderTransformOrigin="6.25,0" Height="141" Width="358" MouseDoubleClick="DataGrid_SelectedItem"/>

        <Button x:Name="Button_ModifySubject" Background="#FF87B42C" Content="Modificar Materia" HorizontalAlignment="Left" Margin="373,182,0,0" VerticalAlignment="Top" Width="134" IsEnabled="False" Click="Button_Click_ModifySubject" Height="32"/>
        <Button x:Name="Button_WatchInfoSubject" Background="#FF87B42C" Content="Ver Materia" HorizontalAlignment="Left" Margin="373,219,0,0" VerticalAlignment="Top" Width="134" IsEnabled="False" Click="Button_WatchInfoSubject_Click" Height="32"/>
        <Button x:Name="Button_AcceptSearchSubject" Background="#FF87B42C" Content="Aceptar" HorizontalAlignment="Left" Margin="373,291,0,0" VerticalAlignment="Top" Width="134" IsEnabled="False" Click="Button_AceptSearchSubject_Click" Height="32" Visibility="Hidden"/>
    </Grid>
</Window>
